package com.guigu.buy.mapper;

import com.guigu.buy.dto.Ord_Pro;
import com.guigu.buy.pojo.OrderDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
public interface OrderDetailsMapper extends BaseMapper<OrderDetails> {

    @Select("SELECT * FROM order_details WHERE order_id = #{orderId}")
    List<OrderDetails> findByOrderId(Integer orderId);

    List<Ord_Pro> getByParentId(int id);
}
